<template>
  <div id="app">

   <transition enter-active-class="animated bounceInLeft"
                leave-active-class="animated bounceOutLeft"
   >
     <router-view></router-view>
   </transition>

    <Tabbar></Tabbar>

  </div>
</template>

<script>
  import tabbar from './components/tabbar'
export default {
  name: 'App',
  data(){
    return{
      flag:false
    }
  },
  components:{
    Tabbar:tabbar
  },
  methods:{
    goBack(){
      this.$router.go(-1);
    }
  },
  watch:{
    '$route.path'(newVal){
          this.flag = newVal!=='/home'

    }
  }
}
</script>

<style>
#app {
  font-family: 'Avenir', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top:0px;
}
</style>
